package ar.com.fiuba.domain;

import ar.com.fiuba.domain.exceptions.DomainException;

/**
 * Interface for an strategy to calculate similarity coeficient between two
 * words using n-gramms.
 * 
 */
public interface CoeficientCalculationStrategy {

	/**
	 * Method to calculate coeficient.
	 * 
	 * @param word
	 *            one word.
	 * @param anotherWord
	 *            another word.
	 * @param ngrammLength
	 *            length of n-gramms used.
	 * @return the value of the coeificient.
	 * @throws DomainException
	 *             if there's a problem with words.
	 */
	Double calculate(Word word, String anotherWord, Integer ngrammLength) throws DomainException;

}
